import request from '@/utils/request'

// 查询主播直播带货申请列表
export function listApply(data) {
  return request({
    url: '/sys/anchor/sell/lives/anchorSellLivesApplyList',
    method: 'post',
    data:data
  })
}

// 查询主播直播带货申请详细
export function getApply(id) {
  return request({
    url: `/sys/anchor/sell/lives/livesApplyDetail/${id}`,
    method: 'get'
  })
}

// 驳回主播直播带货申请
export function rejectAudit(id) {
  return request({
    url: `/sys/anchor/sell/lives/noPass/${id}`,
    method: 'put'
  })
}

// 通过主播直播带货申请
export function passAudit(id) {
  return request({
    url: `/sys/anchor/sell/lives/pass/${id}`,
    method: 'put'
  })
}

